package com.yidu.qianfeng.common.util;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author: TangSheng
 * @Description: layui格式数据包装类
 * @Date Created in 16:27 2021/3/22
 * @since 1.0
 */
@Getter
@Setter
public class LayuiJsonWrap {

    private int code=0;//状态码，默认为0
    private String msg="";//消息，默认为""
    private int count;//数据总条数，默认为0
    private Object data;//任意对象

    public LayuiJsonWrap() {
    }

    public LayuiJsonWrap(Object data) {
        this.data = data;
    }

    public LayuiJsonWrap(int count, Object data) {
        this.count = count;
        this.data = data;
    }

    public LayuiJsonWrap(String msg, int count, Object data) {
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public LayuiJsonWrap(int code, String msg, int count, Object data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

}
